package com.laicunba.service;

import java.util.List;

import com.laicunba.pojo.UserBankDO;

public interface UserBankService extends BaseService {

	List<UserBankDO> findByUserId(String uid);

	UserBankDO find(String userId, String bankCardNo);

	boolean canBind(String userId, String bankCardNo);
	boolean testNewCardPolicy(String userId, String bankCardNo);

	/**
	 * 获得最后,最新的一个银行卡
	 * 
	 * @param bidUserId
	 * @return
	 */
	UserBankDO findLastByUserId(String bidUserId);

	boolean canBind(String userId, String pid, String bankCardNo);

	/**
	 * 获得还款银行卡,规则,购买金额最大的银行卡
	 * 
	 * @param userId
	 * @return
	 */
	UserBankDO findRepaymentCard(String userId);

	List<UserBankDO> findByUserIdContainDisable(String uid);

	/**
	 * 
	 * @param bankCardId
	 * @return
	 */
	boolean disable(String bankCardId);

}
